﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.views {
    import flash.events.*;
    import flash.display.*;
    import flash.net.*;
    import flash.text.*;
    import net.wooga.pets.utils.*;

    public class SystemMessageView extends Sprite {

        private var _message:TextField;
        private var _background:MovieClip;

        public function SystemMessageView(){
            visible = false;
            this._background = AssetsLibrary.getMovieClip("ErrorScreen");
            addChild(this._background);
            addEventListener(MouseEvent.CLICK, this.onClick);
            var _local1:TextFormat = new TextFormat();
            _local1.font = "MyriadProFont";
            _local1.align = TextFormatAlign.CENTER;
            _local1.bold = true;
            _local1.color = "0xFFFFFF";
            _local1.size = 45;
            this._message = new TextField();
            this._message.embedFonts = true;
            this._message.autoSize = TextFieldAutoSize.CENTER;
            this._message.width = 500;
            this._message.defaultTextFormat = _local1;
            this._message.multiline = true;
            this._message.wordWrap = true;
            addChild(this._message);
            this._message.x = ((width - this._message.width) / 2);
            this._message.filters = [Filters.getFilter(Filters.SYSTEM_GLOW)];
        }
        public function set message(_arg1:String):void{
            this._message.htmlText = _arg1;
        }
        private function onClick(_arg1:MouseEvent):void{
            var _local2:URLRequest = new URLRequest("javascript:location.reload();");
            navigateToURL(_local2, "_self");
        }

    }
}//package net.wooga.pets.views 
